<?php

use yii\bootstrap\ActiveForm;
?>
<div>
    <?php ActiveForm::begin();?>
        <div class="form-group">
            <label for="">条形码</label>
            <input name="bar_code" type="text" class="form-control" id="" placeholder="">
        </div>
        <button type="submit" class="btn btn-default">确定</button>
    <?php ActiveForm::end();?>
</div>